package com.jd.basic.util;


import com.jd.basic.jwt.UserInfo;

public class ThreadLocalUtil {

    private static ThreadLocal<UserInfo> threadLocal = new ThreadLocal<>();


    public static void set(UserInfo userInfo){
        threadLocal.set(userInfo);
    }

    public static UserInfo get(){
       return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }
}
